//
//  LCUserModel.m
//  LongChain
//
//  Created by FengZi on 2018/5/26.
//  Copyright © 2018年 FengZi. All rights reserved.
//

#import "LCUserModel.h"

@implementation LCUserModel


+ (instancetype)userModelManager {
    
    static dispatch_once_t onceToken;
    static id model = nil;
    dispatch_once(&onceToken, ^{
        model = [[self alloc]init];
    });
    return model;
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    
    if (self == [super init]) {
        self.mobile = [aDecoder decodeObjectForKey:@"userPhone"];
        self.userid = [aDecoder decodeObjectForKey:@"userToken"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.mobile forKey:@"userPhone"];
    [aCoder encodeObject:self.userid forKey:@"userToken"];
}
@end
